<!DOCTYPE html>
<html>

<head>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<style>
  html,
  body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
  }

  video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .text {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #fff;
    writing-mode: tb-rl;
  }
</style>

<body>
  <video muted playsinline="true" x5-video-player-type='h5-page' loop autoplay id="video" src="./Ocean - 93443.mp4">
  </video>
  <div class="text">
    海内存知己   天涯若比邻
  </div>
</body>
<script>
  var promise = document.querySelector('video').play();

  if (promise !== undefined) {
    promise.catch(error => {
      // Auto-play was prevented
      // Show a UI element to let the user manually start playback
    }).then(() => {
      // Auto-play started
    });
  }


</script>

</html>